<?php
$count = 0;
$i = 1;
?>
<h2 class="blue">Fundraising Best Sellers</h2>

<?php while ($i <= 8) : 
    switch($i){
        case 1:
            $name = "Sports Illustrated";
            $itemid = "";
            $image_url = "/sites/default/files/imagecache/product_full/SI.jpg";
            break;
        case 2:
            $name = "ESPN Magazine";
            $itemid = "2187";
            $image_url = "sites/default/files/imagecache/product_full/espn.jpg";
            break;
        case 3:
            $name = "Time Magazine";
            $itemid = "";
            $image_url = "/sites/default/files/imagecache/product_full/time%20magazine.jpg";
            break;
        case 4:
            $name = "Serenity Prayer Candle";
            $itemid = "1391";
            $image_url = "/sites/default/files/imagecache/product_full/Serinity-Prayer.jpg";
            break;
        case 5:
            $name = "Good Housekeeping";
            $itemid = "1861";
            $image_url = "sites/default/files/imagecache/product_full/goodhousekeeping.jpg";
            break;
        case 6:
            $name = "Prevention";
            $itemid = "2555";
            $image_url = "sites/default/files/imagecache/product_full/prevention.jpg";    
            break;
        case 7:
            $name = "People Magazine";
            $itemid = "";
            $image_url = "/sites/default/files/imagecache/product_full/people.jpg";
            break;
        case 8:
            $name = "Gift Wrap";
            $itemid = "1885";
            $image_url = "sites/default/files/imagecache/product_full/giftwraps%20020.jpg";
            break;
    }
?>
    <?php
    $class = 'home_product quarters left';
    if ($count != count($data)) {
        $class .= ' nl';
    }
    ?>
    <?php ?><article class="<?php echo $class; ?>" style="background:#025E73 url('<?php echo $image_url; ?>') no-repeat center; background-size:contain;">
    <a href="<?php echo url('node/' . $itemid); ?>" class="product_cat_btn">
     <!--   <img src=<?php echo $image_url; ?>>  
        <br />   -->
        <p class="product_desc">
            <?php echo $item['description']; ?>
        </p>
       <!-- <?php echo $name ?></a>   -->
        <h3 class="product-name"><?php echo $name ?></h3></a>
    </article><?php ?>
    <?php $count++;
    $i++;?>
<?php endwhile; ?>


